import request from '@utils/request'
import axios from 'axios'
import config from '@/config'

// 获取ai
const getOpenAi = async (data) => {
  return axios.post(`${config.server.aiServer}/ai/getFreeAi`, data)
  // return axios.post(`${config.server.aiServer}/ai/getFreeAiTest`, data)
}

const getMoneyyAi = async (data) => {
  return axios.post(`${config.server.aiServer}/ai/getMoneyyAi`, data)
}

const getImgAi = async (data) => {
  return axios.post(`${config.server.aiServer}/ai/getImgAi`, data)
}

export { getOpenAi, getMoneyyAi, getImgAi }
